package com.ship.common.core.exception;


import com.ship.common.core.web.domain.BaseResultCode;

/**
 * @author tangshixuan
 * @date 2023-8-30
 */
public class BaseException extends RuntimeException{
    public BaseException(String message) {
        super(message);
    }

    public BaseException(String message, Throwable cause) {
        super(message, cause);
    }

    public BaseException(String message, BaseResultCode baseResultCode) {
        super(message);
    }

    /**
     * 异常的昂贵且无用的堆栈跟踪 一般建议 this
     * @return Throwable
     */
    @Override
    public synchronized Throwable fillInStackTrace() {
        return this;
    }
}
